package com.zhaoyu.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhaoyu.model.admin.dtos.NewsAuthDto;
import com.zhaoyu.model.common.dtos.ResponseResult;
import com.zhaoyu.model.media.dtos.WmNewsDto;
import com.zhaoyu.model.media.dtos.WmNewsPageReqDto;
import com.zhaoyu.model.media.pojos.WmNews;
import com.zhaoyu.model.media.vo.WmNewsCheckVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * WmNews(自媒体图文内容)
 */
public interface WmNewsService extends IService<WmNews> {

    ResponseResult uploadImage(MultipartFile file);

    ResponseResult findAll(WmNewsPageReqDto wmNewsPageReqDto);

    ResponseResult saveWmNews(WmNewsDto wmNewsDto, Short status);

    ResponseResult findWmNewsById(Integer id);

    ResponseResult deleteWmNews(Integer id);

    ResponseResult downOrUpWmNews(WmNewsDto wmNewsDto);

    List<Integer> findReleaseWmNews();

    ResponseResult findListWmNews(NewsAuthDto newsAuthDto);

    WmNewsCheckVO findWmNewsCheckVO(Integer id);

}